<div class="single-head">
	<h3 class="pull-left"><i class="fa fa-desktop purple"></i> <?php echo UserModule::t("Registration"); ?></h3>
	<div class="breads pull-right">
		<strong>Nav</strong> : <a href="<?php echo Yii::app()->createUrl('home'); ?>">Home</a>  / Registration
	</div>
	<div class="clearfix"></div>
</div>
<?php if(Yii::app()->user->hasFlash('registration')): ?>
<div class="success">
<?php echo Yii::app()->user->getFlash('registration'); ?>
</div>
<?php else: ?>

<div class="form">
<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array(
	'id'=>'login-form',
    'type'=>'horizontal',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>

	<p class="note"><?php echo UserModule::t('Fields with <span class="required">*</span> are required.'); ?></p>
	
	<?php echo $form->errorSummary(array($model,$profile)); ?>
	<?php echo $form->textFieldRow($profile,'firstname',array('class'=>'span4 form-control')); ?>
	<?php echo $form->textFieldRow($profile,'lastname' ,array('class'=>'span4 form-control')); ?>
	<?php echo $form->textFieldRow($model,'username' ,array('class'=>'span3 form-control')); ?>
	<?php echo $form->passwordFieldRow($model,'password' ,array('class'=>'span3 form-control')); ?>
	<?php echo $form->passwordFieldRow($model,'verifyPassword' ,array('class'=>'span3 form-control')); ?>
	<?php echo $form->textFieldRow($model,'email' ,array('class'=>'span3 form-control')); ?>
	<?php echo $form->dropDownListRow($profile,'org_typeId',CHtml::listData(OrgType::model()->findAll(), 'id', 'name'),array('class'=>'span3 form-control','empty'=>'--Select Organisation--')); ?>
	<?php echo $form->dropDownListRow($profile,'project_typeId',CHtml::listData(ProjectType::model()->findAll(), 'id', 'name'),array('class'=>'span3 form-control','empty'=>'--Select Legal Status--')); ?>
	<?php echo $form->textFieldRow($profile,'org_name' ,array('class'=>'span3 form-control')); ?>
	<?php echo $form->textAreaRow($profile,'org_desc' ,array('class'=>'span4 form-control')); ?>
	<?php echo $form->textFieldRow($profile,'web_url' ,array('class'=>'span6 form-control')); ?>
	<?php if(CCaptcha::checkRequirements()): ?>
		<?php echo $form->captchaRow($model,'verifyCode',array(
            'hint'=>'Please enter the letters as they are shown in the image above.<br/>Letters are not case-sensitive.',
			'class'=>'span3 form-control'
        )); ?>
	<?php endif; ?>
	
	
	<div class="form-actions">
		<?php $this->widget('bootstrap.widgets.TbButton', array(
            'buttonType'=>'submit',
            'type'=>'primary',
            'label'=>'Register',
        )); ?>
	</div>
<?php $this->endWidget(); ?>
</div><!-- form -->
<?php endif; ?>